package com.aspose.cells;

class zaix {
   private zoz a = null;

   zaix(zoz var1) {
      this.a = var1;
   }

   void a(zcfw var1) throws Exception {
      this.b(var1);
      if (!var1.n()) {
         BuiltInDocumentPropertyCollection var2 = this.a.a.getWorksheets().getBuiltInDocumentProperties();
         var1.d();

         try {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() != 1) {
                  var1.a();
               } else if ("title".equals(var1.p())) {
                  var2.setTitle(var1.i());
               } else if ("creator".equals(var1.p())) {
                  var2.setAuthor(var1.i());
               } else if ("subject".equals(var1.p())) {
                  var2.setSubject(var1.i());
               } else if ("description".equals(var1.p())) {
                  var2.setComments(var1.i());
               } else if ("lastModifiedBy".equals(var1.p())) {
                  var2.setLastSavedBy(var1.i());
               } else if ("keywords".equals(var1.p())) {
                  var2.setKeywords(var1.i());
               } else if ("category".equals(var1.p())) {
                  var2.setCategory(var1.i());
               } else if ("contentType".equals(var1.p())) {
                  var2.setContentType(var1.i());
               } else if ("contentStatus".equals(var1.p())) {
                  var2.setContentStatus(var1.i());
               } else if ("revision".equals(var1.p())) {
                  try {
                     var2.setRevisionNumber(zase.C(var1.i()));
                  } catch (Exception var4) {
                     ;
                  }
               } else {
                  String var3;
                  if ("lastPrinted".equals(var1.p())) {
                     var3 = var1.i();
                     if (var3.length() > 0) {
                        var2.setLastPrinted(com.aspose.cells.a.c.zk.a(var3));
                     }
                  } else if ("created".equals(var1.p())) {
                     var3 = var1.i();
                     if (var3.length() > 0) {
                        var2.setCreatedTime(com.aspose.cells.a.c.zk.a(var3));
                     }
                  } else if ("modified".equals(var1.p())) {
                     var3 = var1.i();
                     if (var3.length() > 0) {
                        var2.setLastSavedTime(com.aspose.cells.a.c.zk.a(var3));
                     }
                  } else {
                     var1.a();
                  }
               }
            }
         } catch (Exception var5) {
            ;
         }

      }
   }

   private void b(zcfw var1) throws Exception {
      var1.j();
      if (var1.r() != 1 || !"coreProperties".equals(var1.p())) {
         throw new CellsException(6, "coreProperties root element eror");
      }
   }
}
